<%@ page import="com.symc.sims0213xfw.bean.Student" %>
<%@ page import="java.util.List" %>
<%@ page import="com.symc.sims0213xfw.bean.StudentView" %><%--
  Created by IntelliJ IDEA.
  User: 凤文 0213
  Date: 2022/1/16
  Time: 15:30
  Description: 
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查看学生信息</title>
</head>
<body>
<br>
<a href="/SMIS0213xfw/jsp/student/addStudent.jsp">添加学生</a>
<a href="/SMIS0213xfw/jsp/student/deleteStudent.jsp">删除学生</a>
<a href="/SMIS0213xfw/jsp/student/selectStudent.jsp">查找学生</a>
<a href="/SMIS0213xfw/jsp/student/listStudent.jsp" target="_self">查看部分信息</a>
<%
    List<StudentView> students = (List<StudentView>)
            session.getAttribute("studentViews");
%>
<table width="600px" border="2px">
    <tr>
        <th>学号</th>
        <th>姓名</th>
        <th>年级</th>
        <th>学院</th>
        <th>专业</th>
        <th>班级</th>
    </tr>
    <%
        for (StudentView student : students) {
    %>
    <tr align="center">
        <td><%=student.getId()%>
        </td>
        <td><%=student.getName()%>
        </td>
        <td><%=student.getGrade()%>
        </td>
        <td><%=student.getCollegeName()%>
        </td>
        <td><%=student.getDepartmentName()%>
        </td>
        <td><%=student.getClassName()%>
        </td>
    </tr>
    <%
        }
    %>
</table>
<br><br>
<a href="/SMIS0213xfw/jsp/student/addStudent.jsp">添加学生</a>
<a href="/SMIS0213xfw/jsp/student/deleteStudent.jsp">删除学生</a>
<a href="/SMIS0213xfw/jsp/student/selectStudent.jsp">查找学生</a>
<a href="/SMIS0213xfw/jsp/student/listStudent.jsp" target="_self">查看部分信息</a>
</body>
</html>
